{include file="user:header" /}
<link href="/static/user/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<script src="/static/user/js/plugins/sweetalert/sweetalert.min.js"></script>
<style>
.biaoge .price{color:red;}
</style>
</head>

<body class="gray-bg">
	
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row"> 
  <!--头部面包屑-->
  <div class="col-lg-12">
  
    <div class="ibox">
      <div class="ibox-content-p5 text-center">
        <div class="breadcrumb"> <i class="fa fa-home m-r5" style=" font-size: 16px;"></i>
          <li><a href="/user/index">首页</a></li>
            <li><a href="/user/market">应用市场</a></li>
          <li class="active">订单支付</li>
        </div>
      </div>
    </div>

    <!--表格-->
    <div class="ibox float-e-margins">
		<div class="ibox-title"><h3>订单支付</h3></div>
<div class="ibox-content">
	<form method="post" class="form-horizontal" action="{:url('pay')}" id="myform">
        <input type="hidden" name="oid" value="{$info['id']}">
		<div class="biaoge">
                <label class="col-sm-1 control-label">订单编号</label>
                <div class="col-sm-2">
                    <p class="form-control-static">{$info['order_sn']}</p>
                </div>
        </div>



        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">订单金额</label>
            <div class="col-sm-3">
                <p class="form-control-static">￥<span class="price">{$info['sum']}</span></p>
            </div>
        </div>

        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">性别</label>
            <div class="col-sm-10">
                <div class="radio radio-success" style="display:inline-block;margin-right:15px;">
                    <input type="radio" name="ptype" id="ptype1" value="1" checked>
                    <label for="ptype1">
                        余额支付
                    </label>
                </div>
                <div class="radio radio-success" style="display:inline-block;margin-right:15px;">
                    <input type="radio" name="ptype" id="ptype2" value="2">
                    <label for="ptype2">
                        微信支付
                    </label>
                </div>
            </div>
        </div>



    	<div class="hr-line-dashed"></div>
		<div class="biaoge">
            <label class="col-sm-1 control-label"></label>
                <div class="col-sm-10">
                   <button type="button" onclick="sumitPost();" class="btn btn-w-m btn-success submit_btn">立即支付</button>
                </div>
        </div>
	
	
	</form>
		</div>
  </div>
</div>
<script>
function sumitPost(){
        swal({
            title: "确认支付",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "确认",
            cancelButtonText:"取消",
            closeOnConfirm: true
        }, function () {
            ajaxpost('myform');
            return;
        });


}
</script>

{include file="user:footer" /}